Skip to content

palm integration (mirroring lik.py in palm)#9

Open
standard-aaron wants to merge 11 commits intomasterfrom
aaron/palm-integration
Open

palm integration (mirroring lik.py in palm)#9
standard-aaron wants to merge 11 commits intomasterfrom
aaron/palm-integration

Conversation

@standard-aaron
Copy link
Copy Markdown
Owner

@standard-aaron standard-aaron commented Mar 2, 2022

I tested this out locally (with input examples available from the repo) and got expected results & successfully saved the output in the .quad_fit.npy format needed for PALM. The usage looks like:

python inference.py --ancientSamps example/exampleAncientSamps3.txt --timeBins example/timeBins200.txt --lik --out test

which saves a test.quad_fit.npy file that summarizes the likelihood surface for that particular SNP. (PALM will require you to generate .quad_fit.npy for each locus you want to include in your likelihood*)

You should be able to follow the instructions on the PALM wiki to format the GWAS summary statistics and (after having run clues/inference.py --lik as demoed above) you should be able to run palm.py.

*Yes, it's pretty dumb that I generate these separately & save these as separate files. I was younger and dumber when I wrote this code. Alas, I don't have time to go back and take on the refactoring to make this simpler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants